class BaseComicsContentData {
    BaseDataComicsContentData data;
    int code;
    String msg;

    BaseComicsContentData({this.data, this.code, this.msg});

    factory BaseComicsContentData.fromJson(Map<String, dynamic> json) {
        return BaseComicsContentData(
            data: json['data'] != null ? BaseDataComicsContentData.fromJson(json['data']) : null,
            code: json['code'],
            msg: json['msg'],
        );
    }

    Map<String, dynamic> toJson() {
        final Map<String, dynamic> data = new Map<String, dynamic>();
        data['code'] = this.code;
        data['msg'] = this.msg;
        if (this.data != null) {
            data['data'] = this.data.toJson();
        }
        return data;
    }
}

class BaseDataComicsContentData {
    ComicsContentData data;
    int count;

    BaseDataComicsContentData({this.data, this.count});

    factory BaseDataComicsContentData.fromJson(Map<String, dynamic> json) {
        return BaseDataComicsContentData(
            data: json['data'] != null ? ComicsContentData.fromJson(json['data']) : null,
            count: json['count'],
        );
    }

    Map<String, dynamic> toJson() {
        final Map<String, dynamic> data = new Map<String, dynamic>();
        data['count'] = this.count;
        if (this.data != null) {
            data['data'] = this.data.toJson();
        }
        return data;
    }
}

class ComicsContentData {
    String cartoonId;
    int cartoonVariableId;
    String chapterId;
    List<String> content;
    int creationTime;
    int id;

    ComicsContentData({this.cartoonId, this.cartoonVariableId, this.chapterId, this.content, this.creationTime, this.id});

    factory ComicsContentData.fromJson(Map<String, dynamic> json) {
        return ComicsContentData(
            cartoonId: json['cartoonId'],
            cartoonVariableId: json['cartoonVariableId'],
            chapterId: json['chapterId'],
            content: json['content'] != null ? new List<String>.from(json['content']) : null,
            creationTime: json['creationTime'],
            id: json['id'],
        );
    }

    Map<String, dynamic> toJson() {
        final Map<String, dynamic> data = new Map<String, dynamic>();
        data['cartoonId'] = this.cartoonId;
        data['cartoonVariableId'] = this.cartoonVariableId;
        data['chapterId'] = this.chapterId;
        data['creationTime'] = this.creationTime;
        data['id'] = this.id;
        if (this.content != null) {
            data['content'] = this.content;
        }
        return data;
    }
}